package DT;

public class Animal {
    String name ;
    String color;
    public Animal(String name,String color)
    {
        this.color = color;
        this.name = name;
        System.out.println(name+"的颜色是"+color);
    }
        public void eat()
        {
            System.out.println(name + "正在吃饭....");
        }
}
